//package com.anche.cywebnew.test;
//
//import com.anche.cywebnew.Utils.Cvr.CVRNetSDK;
//import com.anche.cywebnew.Utils.HikUtil.HCNetSDK;
//import com.sun.jna.NativeLong;
//import org.junit.Test;
//
//import java.io.File;
//
//public class test1 {
//
//    String msg = "11111%s,22222%s,33333%s";
//
//    @Test
//    public void filesize() {
//        msg = String.format(msg, "aaa", "bbb", "ccc");
//        System.out.println(msg);
//        msg = String.format(msg, "ddd", "eee", "fff");
//        System.out.println(msg);
//    }
//
//    @Test
//    public void test() {
////        File file = new File("Z:\\hikvideo");
////        if (!file.exists()) {//如果文件夹不存在
////            file.mkdir();//创建文件夹
////        }
//        File file1 = new File("Z:\\hikvideo\\410700CY0017");
//        if (!file1.exists()) {//如果文件夹不存在
//            file1.mkdirs();//创建文件夹
//        }
//    }
//
//    @Test
//    public void test1() {
//        HCNetSDK netSDK = HCNetSDK.INSTANCE;
//        HCNetSDK.NET_DVR_PLAYCOND netDvrPlaycond = new HCNetSDK.NET_DVR_PLAYCOND();
//        netDvrPlaycond.dwChannel = 0xffffffff;
//        NativeLong m_lLoadHandle = netSDK.NET_DVR_GetFileByTime_V40(new NativeLong(2), "121", netDvrPlaycond);
//        System.out.println("m_lLoadHandle======" + m_lLoadHandle.intValue());
//        System.out.println(netSDK.NET_DVR_GetLastError());
//    }
//
//    @Test
//    public void test2() {
//        CVRNetSDK cvrNetSDK = CVRNetSDK.INSTANTCE;
//        System.out.println(cvrNetSDK.NET_CVR_Init());
//        NativeLong userid = cvrNetSDK.NET_CVR_GetFileByTime(new NativeLong(0),"21072014524094809470","2021-07-26 10:57:52","2021-07-26 10:58:51","C:\\hikvideo\\CY3502000001\\2021-07-26\\1210726111522\\1\\P1.mp4");
//        System.out.println(userid);
//        System.out.println(cvrNetSDK.NET_CVR_GetLastError());
//    }
//}
